package com.rm.zeyou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rm.zeyou.entity.Technician;
import com.rm.zeyou.vo.request.SelectTechnicianListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 技师表 Mapper 接口
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:09
 */
@Mapper
public interface TechnicianMapper extends BaseMapper<Technician> {
    List<Technician> selectTechnicianList(SelectTechnicianListVo requestVo);

    List<Technician> selectTechnicianListByDay(SelectTechnicianListVo requestVo);

    Integer selectAddCount(@Param("brokerInvitationCode") String brokerInvitationCode,@Param("number") Integer number);

    @Update("update t_technician set order_receiving = order_receiving +#{orderNum} where id = #{tid}")
    Integer updateSales(@Param("tid") Long tid, @Param("orderNum") Integer orderNum);
}
